﻿{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<script type="text/javascript">
$(function(){
     $('#sizename_form').validate({
        onkeyup : false,
		onfocusout : false,
		rules : {
			v1_name: {
				required: true,
			},
			v2_name: {
				required: true,
			},
			v3_name: {
				required: true,
			},
			v4_name: {
				required: true,
			},
			v5_name: {
				required: true,
			},
			v6_name: {
				required: true,
			}
		},
		messages : {
			v1_name: {
				required: '{$lang.sizename_not_empty}'
			},
			v2_name: {
				required: '{$lang.sizename_not_empty}'
			},
			v3_name: {
				required: '{$lang.sizename_not_empty}'
			},
			v4_name: {
				required: '{$lang.sizename_not_empty}'
			},
			v5_name: {
				required: '{$lang.sizename_not_empty}'
			},
			v6_name: {
				required: '{$lang.sizename_not_empty}'
			}
		}
	});
});
</script>
<style>
label.error {margin-left:2em; color:#FF0000;}
.tab-frame{width:900px;}
input.input-7{width:150px;}
</style>
<body>
<div class="sub-body">
<div class="tab-frame">
<div class="tab-title-1">
<!--{if $smarty.get.act eq 'add'}--><span>{$lang.add_new_sizename}</span><!--{else}--><span>{$lang.edit_new_sizename}</span><!--{/if}-->
</div>
<form action="{url app=sizename&act=$smarty.get.act}{if $smarty.get.snid}&amp;snid={$smarty.get.snid}{/if}" method="post" id="sizename_form">
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
	<tr>
		<th width="100" align="right">尺寸一：</th>
		<td align="left"><input type="text" name="v1_name" id="v1_name" value="{$sizename.v1_name}" class="input-7" /></td>
	</tr>
    	<tr>
		<th width="100" align="right">尺寸二：</th>
		<td align="left"><input type="text" name="v2_name" id="v2_name" value="{$sizename.v2_name}" class="input-7" /></td>
	</tr>
    	<tr>
		<th width="100" align="right">尺寸三：</th>
		<td align="left"><input type="text" name="v3_name" id="v3_name" value="{$sizename.v3_name}" class="input-7" /></td>
	</tr>
    	<tr>
		<th width="100" align="right">尺寸四：</th>
		<td align="left"><input type="text" name="v4_name" id="v4_name" value="{$sizename.v4_name}" class="input-7" /></td>
	</tr>
    	<tr>
		<th width="100" align="right">尺寸五：</th>
		<td align="left"><input type="text" name="v5_name" id="v5_name" value="{$sizename.v5_name}" class="input-7" /></td>
	</tr>
    	<tr>
		<th width="100" align="right">尺寸六：</th>
		<td align="left"><input type="text" name="v6_name" id="v6_name" value="{$sizename.v6_name}" class="input-7" /></td>
	</tr>

	<tr>
		<td colspan="2" align="center"><input type="submit" value="{$lang.submit}" class="btn-2"/></td>
	</tr>
</table>
</form>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>